package com.lavegue.common;

import java.io.Serializable;
import java.util.List;

/**
 * @author: luoweibin
 * @date:2011-12-19
 * description: 
 *
 */
public interface BaseDao<T, PK extends Serializable> {
	
	public T findById(PK id);
	
	public void save(T obj);
	
	public void delete(T obj);
	
	public void deleteById(PK id);
	
	public void update(T obj);

	public int getTotal();
	
	public List<T> findAll();
	
	public Page<T> findPage(int pageNo, int pageSize);
	
}
